package com.xd.core.business.mapper;

import com.github.pagehelper.Page;
import com.xd.core.business.dto.MortgageQuery;
import com.xd.core.business.entity.Mortgage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.business.vo.IncomingInfoMortgageVo;
import com.xd.core.business.vo.IncomingInfoMortgageVo1;
import com.xd.core.business.vo.MortgageCerfifition;
import com.xd.core.business.vo.MortgagePageVo;
import com.xd.core.company.dto.HomeQueryDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 抵押表 Mapper 接口
 * </p>
 *
 * @author ZX
 * @since 2025-02-26
 */
public interface MortgageMapper extends BaseMapper<Mortgage> {

    List<MortgagePageVo> getMortgageList(@Param("query") MortgageQuery query,
                                         @Param("ids") List<Integer> ids,
                                         @Param("companyId") Integer companyId,
                                         @Param("companyType") String companyType);

    IncomingInfoMortgageVo getDetail(Integer id);

    Integer selectCounts(@Param("query") HomeQueryDto query,
                         @Param("companyId") Integer companyId,
                         @Param("type") String type);

    IncomingInfoMortgageVo1 getDetail1(Integer id);

    List<MortgageCerfifition> getList(Integer id);
}
